class Solution {
public:
    int countCompleteDayPairs(vector<int>& hours) {
        vector<int>mm(24);
        int ret = 0;
        for(auto& e :hours){
            ret += mm[(24 - e%24)%24];
            mm[e%24]++;
        }
        return ret;
    }
};